

package testsubjects;

import java.io.Serializable;
import java.util.function.BiFunction;

/**
 * Serializable BiFunction Implementation to simulate
 * client input function and throw exception if desired.
 */
public class StaticSerializableBiFunctionEx implements BiFunction<Integer, Integer, Integer>, Serializable {

    public StaticSerializableBiFunctionEx() {
    }

    @Override
    public Integer apply(Integer key, Integer oldValue) {
        return key / oldValue;
    }
}

